clear all
close all
capno=1;
figures(capno)=figure;
t=0:0.1:100;
plot(sin(t));
mycaps{capno}='sin曲线';
capno=capno+1;
figures(capno)=figure;
t=0:0.1:100;
plot(cos(t));
mycaps{capno}='cos曲线';
capno=capno+1;
figures(capno)=figure;
t=0:0.1:100;
plot(exp(t));
mycaps{capno}='exp曲线';
capno=capno+1;
figures(capno)=figure;
t=0:0.1:100;
plot(square(t));
mycaps{capno}='平方曲线';
capno=capno+1;
figures(capno)=figure;
t=0:0.1:100;
plot(t.^3);
mycaps{capno}='立方曲线';
capno=capno+1;
%fp2wordo中指定的样式需已经在word中有了
fp2wordo('draw.doc', ...
    3, ...
    mycaps, ...
    figures,...
    '图');%粘贴到鼠标指的位置
% 不输入figures,则将把matlab中显示的所有图窗按matlab自己的顺序画出来,若对图片有更改，则可能颠倒顺序
fp2wordo('draw.doc', ...
    3, ...
    mycaps, ...
    '图');%粘贴到鼠标指的位置

